package com.cn.delan.jdbc;
/**
 * 字段详细信息类
 * @author BingGo
 * @version 1.0
 */
public class ColumnDetail {
	/**
	 * 表名称,数据库中的真实ID
	 */
	private String tableId;
	/**
	 * 字段名称,数据库中的真实ID
	 */
	private String colId;
	/**
	 * 字段名称,显示名称
	 */
	private String colName;
	/**
	 * 字段类型与java.sql.Types中的类型对应
	 */
	private int colType;
	/**
	 * 显示与否
	 */
	private boolean showable = true;
	/**
	 * 编辑与否
	 */
	private boolean editable = true;
	/**
	 * 检索与否
	 */
	private boolean searchable = true;
	/**
	 * 排序
	 */
	private int sort;
	/**
	 * 显示方式
	 */
	private String showType = "text";
	/**
	 * 默认值
	 */
	private String defaultValue = "";
	/**
	 * 验证方式
	 */
	private String validate;
	
	public ColumnDetail(){
		
	}
	public ColumnDetail(String colId,int colType){
		this.colId = colId;
		this.colType = colType;
	}
	public String getTableId() {
		return tableId;
	}
	public void setTableId(String tableId) {
		this.tableId = tableId;
	}
	public String getColId() {
		return colId;
	}
	public void setColId(String colId) {
		this.colId = colId;
	}
	public String getColName() {
		return colName;
	}
	public void setColName(String colName) {
		this.colName = colName;
	}
	public int getColType() {
		return colType;
	}
	public void setColType(int colType) {
		this.colType = colType;
	}
	public boolean isShowable() {
		return showable;
	}
	public void setShowable(boolean showable) {
		this.showable = showable;
	}
	public boolean isEditable() {
		return editable;
	}
	public void setEditable(boolean editable) {
		this.editable = editable;
	}
	public boolean isSearchable() {
		return searchable;
	}
	public void setSearchable(boolean searchable) {
		this.searchable = searchable;
	}
	public String getValidate() {
		return validate;
	}
	public void setValidate(String validate) {
		this.validate = validate;
	}
	public int getSort() {
		return sort;
	}
	public void setSort(int sort) {
		this.sort = sort;
	}
	public String getShowType() {
		return showType;
	}
	public void setShowType(String showType) {
		this.showType = showType;
	}
	public String getDefaultValue() {
		return defaultValue;
	}
	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}
}
